<template>
  <div>
    <input type="text" v-model="user.account"><br>
    <input type="text" v-model="user.pwd"><br>
    <input type="button" @click="login()" value="登录">
  </div>
</template>
<script>
export default{
  data(){
    return{
      user:{
        account:'',
        pwd:''
      }
    }
  },
  methods:{
    login:function(){
      this.axios.post(this.baseUrl+"user/login",this.user).then(res=>{
        console.log(res.data);
      })
    }
  }
}
</script>